package com.jdrx.ocp.beans.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

import javax.validation.constraints.NotNull;

import com.jdrx.ocp.beans.constans.ELoginFlag;
import com.jdrx.ocp.beans.enums.EUserRoleLevel;
import com.jdrx.platform.commons.rest.beans.enums.EDelFlag;

@ApiModel(value = "新增超级管理员账号参数")
@Data
public class CreateAdminUserDTO implements Serializable {
	private static final long serialVersionUID = -7504726090158879534L;

	@NotNull
	@ApiModelProperty(value = "账号名称", required = true)
	private String name;

	@NotNull
	@ApiModelProperty(value = "用户密码", required = true)
	private String pwd;

	@ApiModelProperty(value = "用户名")
	private String realName;

	@ApiModelProperty(value = "备注")
	private String remark = "该账号由租户注册时自动创建，请慎重修改相关信息";
	
	@ApiModelProperty(hidden = true)
	private Integer delFlag = EDelFlag.NORMAL.getKey();
	
	@ApiModelProperty(hidden = true)
	private Integer loginFlag = ELoginFlag.UN_LOGIN.getKey();
	
	@ApiModelProperty(hidden = true)
	private Integer roleLevel = EUserRoleLevel.SUPER_ADMIN.getKey();
	
	@ApiModelProperty(hidden = true)
	private Long createBy = 0L;
	
	@ApiModelProperty(hidden = true)
	private LocalDateTime createAt = LocalDateTime.now();
}